<template>
  <h2>组件props</h2>
  <Child num="5" @abc="fn" />
</template>

<script>
import Child from "../components/01-child-props.vue";

export default {
  // components和props写不到setup里面
  components: {
    Child,
  },
  setup() {
    const fn = () => {
      console.log("fn");
    };

    return { fn };
  },
};
</script>
